package aiku.numericalcontroloa.Model.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName after_records
 */
@TableName(value ="after_records")
@Data
public class AfterRecords implements Serializable {
    /**
     * 售后记录id(售后交流记录表)
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String afterRecordsId;

    /**
     * 售后id
     */
    private String afterSalesId;

    /**
     * 交流内容
     */
    private String afterCount;

    /**
     * 交流时间
     */
    private Date afterTime;

    /**
     * 下次提醒时间
     */
    private Date reminderTime;

    /**
     * 提醒状态
     */
    private String remindStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AfterRecords other = (AfterRecords) that;
        return (this.getAfterRecordsId() == null ? other.getAfterRecordsId() == null : this.getAfterRecordsId().equals(other.getAfterRecordsId()))
            && (this.getAfterSalesId() == null ? other.getAfterSalesId() == null : this.getAfterSalesId().equals(other.getAfterSalesId()))
            && (this.getAfterCount() == null ? other.getAfterCount() == null : this.getAfterCount().equals(other.getAfterCount()))
            && (this.getAfterTime() == null ? other.getAfterTime() == null : this.getAfterTime().equals(other.getAfterTime()))
            && (this.getRemindStatus() == null ? other.getRemindStatus() == null : this.getRemindStatus().equals(other.getRemindStatus()))
            && (this.getReminderTime() == null ? other.getReminderTime() == null : this.getReminderTime().equals(other.getReminderTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAfterRecordsId() == null) ? 0 : getAfterRecordsId().hashCode());
        result = prime * result + ((getAfterSalesId() == null) ? 0 : getAfterSalesId().hashCode());
        result = prime * result + ((getAfterCount() == null) ? 0 : getAfterCount().hashCode());
        result = prime * result + ((getAfterTime() == null) ? 0 : getAfterTime().hashCode());
        result = prime * result + ((getRemindStatus() == null) ? 0 : getRemindStatus().hashCode());
        result = prime * result + ((getReminderTime() == null) ? 0 : getReminderTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", afterRecordsId=").append(afterRecordsId);
        sb.append(", afterSalesId=").append(afterSalesId);
        sb.append(", afterCount=").append(afterCount);
        sb.append(", afterTime=").append(afterTime);
        sb.append(", remindStatus=").append(remindStatus);
        sb.append(", reminderTime=").append(reminderTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}